/*
 * Copyright (c) 2020-2030  Xiamen Nascent Corporation. All rights reserved.
 *
 * https://www.nascent.cn
 *
 * 厦门南讯股份有限公司创立于2010年，是一家始终以技术和产品为驱动，帮助大消费领域企业提供客户资源管理（CRM）解决方案的公司。
 * 福建省厦门市软件园二期观日路22号501
 * 客服电话 400-009-2300
 * 电话 +86（592）5971731 传真 +86（592）5971710
 *
 * All source code copyright of this system belongs to Xiamen Nascent Co., Ltd.
 * Any organization or individual is not allowed to reprint, publish, disclose, embezzle, sell and use it for other illegal purposes without permission!
 */

package org.magneton.module.monitor.core.core.monitor;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import org.springframework.scheduling.support.CronSequenceGenerator;

import javax.annotation.Nullable;

@Getter
@ToString
@AllArgsConstructor
public class CronData {

	/**
	 * Cron表达式
	 */
	private String expression;

	/**
	 * Cron表达序列生成器
	 */
	private CronSequenceGenerator sequenceGenerator;

	/**
	 * 触发预警后，下一次的延时时间
	 */
	private long delay;

	/**
	 * 提示信息
	 */
	@Nullable
	private String message;

}